home *** CD-ROM | disk | FTP | other *** search
- #! /bin/csh
- # polx is a csh script to edit a file of Polish options using ISTPO.
- #
- #
- # Invocation:
- #
- # polx Polish_option_file
- #
- # Check command line validity.
- if ( $#argv < 1 ) then
- TOOLPACKPATH/toolpack1.2/util/echoerr \
- Invocation:
- TOOLPACKPATH/toolpack1.2/util/echoerr ""
- TOOLPACKPATH/toolpack1.2/util/echoerr \
- polx Polish_option_file
- TOOLPACKPATH/toolpack1.2/util/echoerr ""
- TOOLPACKPATH/toolpack1.2/util/echoerr \
- Polish_option_file is a file of formatting options used by tools
- TOOLPACKPATH/toolpack1.2/util/echoerr \
- that reconstruct Fortran text from a token/comment stream. If
- TOOLPACKPATH/toolpack1.2/util/echoerr \
- the file exists, it will be read into the editor. If it does not
- TOOLPACKPATH/toolpack1.2/util/echoerr \
- exist, it will be created with default options and read into the editor.
- TOOLPACKPATH/toolpack1.2/util/echoerr ""
- exit
- endif
- #
- # Create PFS. If PFS already exists, exit with an advisory message.
- #
- if ( -e _.TOOLPACK == 0 ) then
- mkdir _.TOOLPACK
- else
- TOOLPACKPATH/toolpack1.2/util/echoerr \
- Toolpack-created directory '"_.TOOLPACK"' exists. \
- Remove with script '"discard"'.
- exit
- endif
- # Option file name.
- set opts = $1
- # Create the interprocess file IST.CMD and append parameters for ISTPO.
- TOOLPACKPATH/toolpack1.2/util/mkipf \
- \#$opts
- #
- # Invoke ISTPO.
- #
- TOOLPACKPATH/toolpack1.2/util/echoerr \
- Entering Polish Options Editor
- TOOLPACKPATH/toolpack1.2/exec/istpo.u
- #
- /bin/rm -r _.TOOLPACK
- #
-